package com.weareint.common.exception;

/**
 *
 * <pre>
 *      ExceptionEnum
 * </pre>
 *
 * @author Johnny
 * @date 2021-09-28
 */
public enum ExceptionEnum implements BaseErrorInterface {

    // 数据操作错误定义
    ID_IS_NULL("60000", "id 不能为空"),
    NOT_FIND_BY_ID("60000", "找不到 id 对应数据");


    /** 错误码 */
    private String resultCode;

    /** 错误描述 */
    private String resultMsg;

    ExceptionEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return this.resultCode;
    }

    @Override
    public String getResultMsg() {
        return this.resultMsg;
    }
}

